--[[---@class Battle.BuffEffect10022002
---@field New fun():Battle.BuffEffect10022002
---移除制定buff
local BuffEffect10022002 = Battle.CreateClass("BuffEffect10022002")
Battle.BuffEffect10022002 = BuffEffect10022002
function BuffEffect10022002:OnCreate(buff)
    ---@type Battle.Skill
    self.buff = buff
    ---@type table
    self.param = decodeJsonStrToTable(buff.cfg.f_EffectParameter);
    self.actor = Battle.ActorManager.GetActor(self.buff.targetId)
end

function BuffEffect10022002:SetCasterId(id)
    self.casterId = id
end
function BuffEffect10022002:SetSkillId(id)
    self.skillId = id
end
---当buff销毁后(已从buff容器中移除)
function BuffEffect10022002:OnDestroy()

end
function BuffEffect10022002:Update(dt)
   

end
---实例化后，生效前调用(还未加入buff容器中)
function BuffEffect10022002:OnBuffAwake()

end
---buff生效时
function BuffEffect10022002:OnBuffStart(...)
    local target = Battle.ActorManager.GetActor(self.buff.targetId)
    for i, v in pairs(self.param) do
    local removeBuff = Battle.BufferMgr.GetBuff(target.id, v[1])
        if removeBuff then
            removeBuff:OnBuffRemove()
        end
    end
end
---相同类型时刷新(更新buff层数、等级、持续时间等)
function BuffEffect10022002:OnBuffRefresh()

end
---当buff销毁前(还未从buff容器中移除)
function BuffEffect10022002:OnBuffRemove()

end

---定时器间隔触发开始
function BuffEffect10022002:StartIntervalThink()

end
---定时器间隔触发
function BuffEffect10022002:OnIntervalThink()

end
return BuffEffect10022002]]